import sun.text.normalizer.UCharacter;

import java.util.PriorityQueue;
import java.util.*;
/**
 * User:xieChao
 * Date:2022/10/11 10:10
 */
public class TestDemo {
    public static void main2(String[] args) {

    }



    public static void main1(String[] args) {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(3);
        priorityQueue.offer(1);
        priorityQueue.offer(5);

    }

    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();
        testHeap.createHeap(array);
        testHeap.offer(80);
        System.out.println(testHeap.poll());
        System.out.println(testHeap.poll());
        testHeap.heapSort();
        System.out.println("=====================");
    }
}
